//
//  XNViewController.m
//  XNBeeHive
//
//  Created by helinyu on 01/01/2022.
//  Copyright (c) 2022 helinyu. All rights reserved.
//

#import "XNViewController.h"
#import "XNFeedBackVcService.h"
#import "BHServiceManager.h"

@interface XNViewController ()

@end

@implementation XNViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
  
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeSystem];
    [self.view addSubview:btn];
    btn.backgroundColor = [UIColor blueColor];
    btn.frame = CGRectMake(100.f, 100.f, 100.f, 100.f);
    [btn addTarget:self action:@selector(onTest) forControlEvents:UIControlEventTouchUpInside];
}

- (void)onTest {
    UIViewController *vc = [[BHServiceManager sharedManager] createService:@protocol(XNFeedBackVcService)];
    [self.navigationController pushViewController:vc animated:YES];    
}


@end
